﻿#ifndef CommonResp_H
#define CommonResp_H
#include "BaseMsg.h"

#define MSG_TYPE_COMMON_RESP "CommonResp"

typedef enum
{
    CommonRespTag_handleResult = 1,

    CommonRespTag_resultIllustration = 2

} CommonRespTag;


typedef enum
{
    CommonRespResult_success = 200,

    CommonRespResult_fail = 201

}CommonRespResult;

class CommonResp : public BaseMsg
{
public:
    CommonResp();

    CommonResp(int code, SString result);

    virtual ~CommonResp();

    virtual int decodeParametersFromTlv(TLV* tlv);

    virtual int encodeParametersIntoTlvs(list<TLV *> & tlvs);

    //处理结果
    int code;

    //结果说明
    SString result;

};

#endif // CommonResp_H
